package top.z.work.module.system.controller.role.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import top.z.work.module.system.controller.route.vo.SystemRouteVO;

import java.util.List;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Schema(description = "系统管理 - 角色菜单关联 VO")
public class SystemRoleRelateRouteCreateVO extends SystemRouteVO {

    @NotNull(message = "角色主键不能为空")
    @Schema(description = "角色主键", example = "1234")
    private Long roleId;

    @NotNull(message = "路由主键不能为空")
    @NotEmpty(message = "路由主键列表不能为空")
    @Schema(description = "路由主键", example = "5678")
    private List<Long> routeId;

}
